package com.c2soft.ncmx.exch.pojo;



public class OrderBookEntry {

	public enum Type{
		BUY, SELL, CANCEL
		};
	
	private Type type;
	
	private String orderId;

	private long price;
	
	private int qty;
	
	private String symbol;

	public OrderBookEntry(String type, String orderId, long price, int qty) {
		this.type = Type.valueOf(type);
		this.orderId = orderId;
		this.price = price;
		this.qty = qty;
	}
	
	public OrderBookEntry(String type, String orderId, long price, int qty,String symbol) {
		this.type = Type.valueOf(type);
		this.orderId = orderId;
		this.price = price;
		this.qty = qty;
		this.symbol=symbol;
	}

	public long getPrice() {
		return price;
	}

	public void setPrice(long price) {
		this.price = price;
	}

	public int getQty() {
		return qty;
	}

	public void setQty(int qty) {
		this.qty = qty;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Type getType() {
		return type;
	}

	//Does this SET method need to return something? 
	public Type setType(Type type) {
		this.type = type;
		return type;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	
}
